package com.example.learn.hwod;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.Scanner;

public class _13字符串模糊查询 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String src = sc.nextLine();
        String tar = sc.nextLine();
        System.out.println(getResult(src,tar));

    }

    private static int getResult(String src, String tar) {
        ArrayList<HashSet<Character>> levels = new ArrayList<>();
        HashSet<Character> level = new HashSet<>();
        boolean isOpen = false;
        for (int i = 0; i < tar.length(); i++) {
            char c = tar.charAt(i);
            if (c=='[') {
                isOpen = true;
            }else if (c==']') {
                isOpen = false;
            }
        }
        return 0;
    }
}
